]> dgit.raspbian.org Git - gnome-shell.git/commit
js/ui: Subscribe touchpad gesture handlers to only touchpad events
authorDaniel van Vugt <daniel.van.vugt@canonical.com>
Fri, 10 Jan 2020 07:44:35 +0000 (15:44 +0800)
committerJonas Ådahl <jadahl@gmail.com>
Sat, 29 Feb 2020 13:39:17 +0000 (13:39 +0000)
commitbd197789c1e28bea4361cca48c8e3ef940b1f460
treebfee32bab3e05ee8cee8c70da659c490e42bb688
parentdaff787a629933d7a6f0ff7b4c6e9ff7c5d5a11f
js/ui: Subscribe touchpad gesture handlers to only touchpad events

The touchpad gesture handlers were receiving all events, all the time.
This meant that even mouse movements were getting translated into
JavaScript calls and then discarded by the handlers, which wasted CPU.

Now we subscribe the touchpad gesture handlers to only touchpad events.

Prequisite: https://gitlab.gnome.org/GNOME/mutter/merge_requests/1000

Closes: https://gitlab.gnome.org/GNOME/mutter/issues/283
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/925
js/ui/swipeTracker.js
js/ui/viewSelector.js